package com.mingyuan;


import org.apache.commons.collections4.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

public class Main {

    public static void main(String[] args) {


        List<String> list = new ArrayList<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");

        List<String> list2 = new ArrayList<>();
        list.add("cc");
        list.add("dd");


        List<String> list3 = (List<String>) CollectionUtils.subtract(list,list2);

        for(String value:list3){
            System.out.println(value);
        }


    }
}
